bd49eb175ba8b91d9d2ab76992b29617c084b652,sponge/src/main/java/com/github/games647/changeskin/sponge/LoginListener.java,LoginListener,refetch,#UserPreference#GameProfile#,66
Before Change
}
try {
ownerUUID = plugin.getCore().getUUID(playerName);
if (ownerUUID != null) {
plugin.getCore().getUuidCache().put(playerName, ownerUUID);
}
} catch (NotPremiumException ex) {
plugin.getLogger().debug("User is not premium", ex);
plugin.getCore().getCrackedNames().put(playerName, new Object());
} catch (RateLimitException ex) {
plugin.getLogger().error("Rate limit reached on refetch", ex);
}
}
if (ownerUUID != null) {
SkinData storedSkin = plugin.getCore().getStorage().getSkin(ownerUUID);
if (storedSkin == null) {
storedSkin = plugin.getCore().downloadSkin(ownerUUID);
}
preferences.setTargetSkin(storedSkin);
After Change
}
try {
ownerUUID = plugin.getCore().getMojangSkinApi().getUUID(playerName);
if (ownerUUID != null) {
plugin.getCore().getUuidCache().put(playerName, ownerUUID);
}
} catch (NotPremiumException ex) {
plugin.getLogger().debug("User is not premium", ex);
plugin.getCore().getCrackedNames().put(playerName, new Object());
} catch (RateLimitException ex) {
plugin.getLogger().error("Rate limit reached on refetch", ex);
}
}
if (ownerUUID != null) {
SkinData storedSkin = plugin.getCore().getStorage().getSkin(ownerUUID);
if (storedSkin == null) {
storedSkin = plugin.getCore().getMojangSkinApi().downloadSkin(ownerUUID);
}
preferences.setTargetSkin(storedSkin);